#Nerd-Font

$font_url = "https://ghproxy.com/https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.2/IntelOneMono.zip"

$outputPath = IntelOneMono.zip

curl $font_url -o $outputPath

# oh-my-posh
winget install JanDeDobbeleer.OhMyPosh -s winget

## config powershell to use oh-my-posh
$config = 'oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/material.omp.json"| Invoke-Expression'
Add-Content -Path $PROFILE -Value $config

#git

## gitconfig
git config --global user.name="arashrun"
git config --global user.email="arashrun@qq.com"
## 不对非英文解码
git config --global core.quotepath false
## 加速git clone下载速度
git config --global url."https://ghproxy.com/https://github.com".insteadOf "https://github.com"


## gitalias  --  https://github.com/GitAlias/gitalias
curl https://ghproxy.com/https://raw.githubusercontent.com/GitAlias/gitalias/main/gitalias.txt -o gitalias.txt
git config --global include.path gitalias.txt
